class localaccounts::yanxf {
  user { 'yanxf':
    ensure  => 'present',
    comment => 'yan xiao fei',
    gid     => '600',
    home    => '/home/cc/yanxf',
    shell   => '/bin/bash',
    uid     => '60019',
  }
  user { 'wanglu':
    ensure  => 'present',
    comment => 'wang lu',
    gid     => '600',
    home    => '/afs/ihep.ac.cn/users/w/wanglu',
    shell   => '/bin/tcsh',
    uid     => '60007',
  }
  user { 'kanbw':
    ensure  => 'present',
    comment => 'kan bowen',
    gid     => '600',
    home    => '/afs/ihep.ac.cn/users/k/kanbw',
    shell   => '/bin/tcsh',
    uid     => '60045',
  }
  user { 'zhengw':
    ensure  => 'present',
    comment => 'zheng wei',
    gid     => '600',
    home    => '/afs/ihep.ac.cn/users/z/zhengw',
    shell   => '/bin/bash',
    uid     => '60020',
  }
  user { 'nagios':
    ensure  => 'present',
    comment => 'nagios',
    gid     => '600',
    home    => '/afs/ihep.ac.cn/users/n/nagios',
    shell   => '/bin/bash',
    uid     => '50234',
  }
  user { 'condor':
    ensure  => 'present',
    comment => 'condor',
    gid     => '600',
    home    => '/afs/ihep.ac.cn/users/c/condor',
    shell   => '/bin/bash',
    uid     => '11014',
  }
  group { 'u07':
    ensure  => 'present',
    gid     => '600',
  }
  define mySudo {
      sudo::conf { $name:
        priority => 10,
        content  => "$name   ALL= (ALL)      NOPASSWD:       ALL\n",
      }
  }
  $sudousers=["yanxf","wanglu","kanbw","zhengw"]
  mySudo { $sudousers: }
}
